package dao;

import java.util.ArrayList;

import po.Comment;

/**
* @author 曹桢瑞
* CommentDAO
*/
public interface CommentDAO {
	public ArrayList<Comment> getCommentByUserId(String userId,int num);
	public ArrayList<Comment> getCommentByBookId(String bookId,int num);
	public ArrayList<Comment> getCommentByIds(String userId,String bookId);
	public boolean addComment(Comment comment);
	public boolean updateComment(Comment comment);
	public boolean removeCommentByIds(String userId,String bookId);
}
